projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4ea99e
)
(main): Test HAVE_GETCWD rather than BSD_SYSTEM.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 2 Dec 2002 16:14:35 +0000
(16:14 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 2 Dec 2002 16:14:35 +0000
(16:14 +0000)
lib-src/emacsclient.c
patch
|
blob
|
history
diff --git
a/lib-src/emacsclient.c
b/lib-src/emacsclient.c
index 007473929a3815ab4acef0de9fef712690aaf6e7..81245bcd66a0a3c8f58528904b8d6fece447cf5d 100644
(file)
--- a/
lib-src/emacsclient.c
+++ b/
lib-src/emacsclient.c
@@
-418,19
+418,19
@@
main (argc, argv)
fail (argc, argv);
}
-#ifdef BSD_SYSTEM
- cwd = getwd (string);
-#else
+#ifdef HAVE_GETCWD
cwd = getcwd (string, sizeof string);
+#else
+ cwd = getwd (string);
#endif
if (cwd == 0)
{
/* getwd puts message in STRING if it fails. */
fprintf (stderr, "%s: %s (%s)\n", argv[0],
-#ifdef BSD_SYSTEM
- string,
-#else
+#ifdef HAVE_GETCWD
"Cannot get current working directory",
+#else
+ string,
#endif
strerror (errno));
fail (argc, argv);